package cn.hyp.bantang.module.finance.dal.mysql.baselr;

import java.util.*;

import cn.hyp.bantang.framework.common.pojo.PageResult;
import cn.hyp.bantang.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.hyp.bantang.framework.mybatis.core.mapper.BaseMapperX;
import cn.hyp.bantang.module.finance.dal.dataobject.baselr.BaseLrDO;
import org.apache.ibatis.annotations.Mapper;
import cn.hyp.bantang.module.finance.controller.admin.baselr.vo.*;

/**
 * 个股报告期利润 Mapper
 *
 * @author 半唐
 */
@Mapper
public interface BaseLrMapper extends BaseMapperX<BaseLrDO> {

    default PageResult<BaseLrDO> selectPage(BaseLrPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<BaseLrDO>()
                .eqIfPresent(BaseLrDO::getSecCode, reqVO.getSecCode())
                .likeIfPresent(BaseLrDO::getSecName, reqVO.getSecName())
                .eqIfPresent(BaseLrDO::getBgnd, reqVO.getBgnd())
                .eqIfPresent(BaseLrDO::getHblx, reqVO.getHblx())
                .eqIfPresent(BaseLrDO::getYyzsr, reqVO.getYyzsr())
                .eqIfPresent(BaseLrDO::getQzYysr, reqVO.getQzYysr())
                .eqIfPresent(BaseLrDO::getLxsr, reqVO.getLxsr())
                .eqIfPresent(BaseLrDO::getYzbf, reqVO.getYzbf())
                .eqIfPresent(BaseLrDO::getSxfjyjsr, reqVO.getSxfjyjsr())
                .eqIfPresent(BaseLrDO::getYyzcb, reqVO.getYyzcb())
                .eqIfPresent(BaseLrDO::getQzYycb, reqVO.getQzYycb())
                .eqIfPresent(BaseLrDO::getLxzc, reqVO.getLxzc())
                .eqIfPresent(BaseLrDO::getSxfjyjzc, reqVO.getSxfjyjzc())
                .eqIfPresent(BaseLrDO::getTbj, reqVO.getTbj())
                .eqIfPresent(BaseLrDO::getPfzcje, reqVO.getPfzcje())
                .eqIfPresent(BaseLrDO::getTqbxzrzbjje, reqVO.getTqbxzrzbjje())
                .eqIfPresent(BaseLrDO::getBdhlzc, reqVO.getBdhlzc())
                .eqIfPresent(BaseLrDO::getFbfy, reqVO.getFbfy())
                .eqIfPresent(BaseLrDO::getYysjjfj, reqVO.getYysjjfj())
                .eqIfPresent(BaseLrDO::getXsfy, reqVO.getXsfy())
                .eqIfPresent(BaseLrDO::getGlfy, reqVO.getGlfy())
                .eqIfPresent(BaseLrDO::getKtfy, reqVO.getKtfy())
                .eqIfPresent(BaseLrDO::getCwfy, reqVO.getCwfy())
                .eqIfPresent(BaseLrDO::getYffy, reqVO.getYffy())
                .eqIfPresent(BaseLrDO::getZcjzssYyzcb, reqVO.getZcjzssYyzcb())
                .eqIfPresent(BaseLrDO::getPGyjzbdjsy, reqVO.getPGyjzbdjsy())
                .eqIfPresent(BaseLrDO::getTzsy, reqVO.getTzsy())
                .eqIfPresent(BaseLrDO::getQzDlyqyhhyqydtzsy, reqVO.getQzDlyqyhhyqydtzsy())
                .eqIfPresent(BaseLrDO::getHdsy, reqVO.getHdsy())
                .eqIfPresent(BaseLrDO::getQtsr, reqVO.getQtsr())
                .eqIfPresent(BaseLrDO::getXyjzssYyzcb, reqVO.getXyjzssYyzcb())
                .eqIfPresent(BaseLrDO::getJcktqsy, reqVO.getJcktqsy())
                .eqIfPresent(BaseLrDO::getZcczsy, reqVO.getZcczsy())
                .eqIfPresent(BaseLrDO::getYxyylrdqtkm, reqVO.getYxyylrdqtkm())
                .eqIfPresent(BaseLrDO::getYylr, reqVO.getYylr())
                .eqIfPresent(BaseLrDO::getPBtsr, reqVO.getPBtsr())
                .eqIfPresent(BaseLrDO::getYywsr, reqVO.getYywsr())
                .eqIfPresent(BaseLrDO::getQzFldzcczdl, reqVO.getQzFldzcczdl())
                .eqIfPresent(BaseLrDO::getMYywzc, reqVO.getMYywzc())
                .eqIfPresent(BaseLrDO::getQzFldzcczss, reqVO.getQzFldzcczss())
                .eqIfPresent(BaseLrDO::getPYxlrzedqtkm, reqVO.getPYxlrzedqtkm())
                .eqIfPresent(BaseLrDO::getLrze, reqVO.getLrze())
                .eqIfPresent(BaseLrDO::getMSds, reqVO.getMSds())
                .eqIfPresent(BaseLrDO::getPYxjlrdqtkm, reqVO.getPYxjlrdqtkm())
                .eqIfPresent(BaseLrDO::getJlr, reqVO.getJlr())
                .eqIfPresent(BaseLrDO::getCxjyjlr, reqVO.getCxjyjlr())
                .eqIfPresent(BaseLrDO::getZzjjjlr, reqVO.getZzjjjlr())
                .eqIfPresent(BaseLrDO::getGmjlr, reqVO.getGmjlr())
                .eqIfPresent(BaseLrDO::getSsgdsy, reqVO.getSsgdsy())
                .eqIfPresent(BaseLrDO::getJbmgsy, reqVO.getJbmgsy())
                .eqIfPresent(BaseLrDO::getXsmgsy, reqVO.getXsmgsy())
                .eqIfPresent(BaseLrDO::getQtzhsydshje, reqVO.getQtzhsydshje())
                .eqIfPresent(BaseLrDO::getZhsyze, reqVO.getZhsyze())
                .eqIfPresent(BaseLrDO::getQzGsmgs, reqVO.getQzGsmgs())
                .eqIfPresent(BaseLrDO::getQzGsssgd, reqVO.getQzGsssgd())
                .eqIfPresent(BaseLrDO::getRemark, reqVO.getRemark())
                .eqIfPresent(BaseLrDO::getQzLxfy, reqVO.getQzLxfy())
                .eqIfPresent(BaseLrDO::getQzLxsr, reqVO.getQzLxsr())
                .eqIfPresent(BaseLrDO::getXyjzss, reqVO.getXyjzss())
                .eqIfPresent(BaseLrDO::getZcjzss, reqVO.getZcjzss())
                .eqIfPresent(BaseLrDO::getQzGsmgssyzQtzhsy, reqVO.getQzGsmgssyzQtzhsy())
                .eqIfPresent(BaseLrDO::getQzGsssgdQtzhsy, reqVO.getQzGsssgdQtzhsy())
                .eqIfPresent(BaseLrDO::getTycbJrzcSy, reqVO.getTycbJrzcSy())
                .eqIfPresent(BaseLrDO::getYxyyzsrdqtkm, reqVO.getYxyyzsrdqtkm())
                .eqIfPresent(BaseLrDO::getYxyyzcbdqtkm, reqVO.getYxyyzcbdqtkm())
                .betweenIfPresent(BaseLrDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(BaseLrDO::getId));
    }

}